<?php
namespace app\common\model;
class TaskModel extends BaseModel
{
	protected $name='task';
	public static $statusArr = [0=>'禁用',1=>'暂停',2=>'正常'];
	public static  $exec_type_arr = [
		'Http' => 'http请求',
		'Shell' => '本地执行',
	];


	public function getStatusTxtAttr($v,$d){
		return  self::$statusArr[$d['status']]??'未知';
	}
}